GUI Help > General > gadgetX

gadgetX
int x=gadgetX(handle gadget, [handle relativeToGadget])

Description:
Returns the X position of the gadget relative to its parent gadget/window or optionally, relative to the specified gadget.

Return Value:
X co-ordinate of left edge of gadget relative to parent

Parameters:
gadget Handle to a gadget
[relativeToGadget] Optional. Handle of a gadget. If specified the position of the gadget is returned relative to relativeToGadget.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)